#!/bin/bash
rm -rf /var/log/*.gz
rm -rf /var/log/*.1
rm -rf /var/log/apt/*.gz
rm -rf /var/log/apt/*.1
rm -rf /var/lib/apt/lists/*
echo > /var/log/dmesg
echo > /var/log/kern.log
echo > /var/log/messages
echo > /var/log/syslog
echo > /var/log/debug
echo > /var/log/btmp
echo > /var/log/lastlog
echo > /var/log/user.log

cat /dev/null > /var/log/wtmp
cat /dev/null > /var/log/messages
cat /dev/null > /var/log/secure
cat /dev/null > /var/log/aptitude 

apt-get autoremove
apt-get autoclean

echo > /etc/apt/sources.list
echo > ~/.bash_history


echo "bash /boot/update-boot.sh" >> /etc/rc.local

#rm ./clear.sh
